# celery启动文件
from celery import  Celery
import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE","meiduo.settings")

# 1创建celery实例
celery_app = Celery('celery_tasks')

# 2创建celery配置
celery_app.config_from_object('celery_tasks.config')

# 3自动注册cleery任务
celery_app.autodiscover_tasks(['celery_tasks.sms','celery_tasks.email'])
